#include <iostream>
using namespace std;

/*
    
*/
void prt(int *x, int *y, int *z)
{
    cout << x << ", " << y << ", " << z << endl;
    cout << ++*x << ", " << ++*y << ", " << *(z++) << endl;
    cout << x << ", " << y << ", " << z << endl;
}

int a = 10;
int c = 20;
int b = 40;
int main()
{
    cout << &a << ", " << &b << ", " << &c << endl;
 	prt(&a, &b, &c);
 	prt(&a, &b, &c);

    return 0;
}